package com.nbjtjc.safe.mapper.cost;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.nbjtjc.safe.model.cost.CostInjuryClaimRecord;
import com.nbjtjc.util.MyMapper;
@Mapper
public interface CostInjuryClaimRecordMapper extends MyMapper<CostInjuryClaimRecord> {
	@Select("select * from cost_injury_claim_record where cancel = 0 and injury_claim_id = #{claimId}")
	List<CostInjuryClaimRecord> selectByClaimId(@Param("claimId") Integer claimId);
	
	@Update("update cost_injury_claim_record set cancel = 1 where injury_claim_id = #{claimId}")
	int cancelByClaimId(@Param("claimId")Integer claimId);
}